package Pen;
import Color.*;
import Size.*;

public class Crayon implements IPen {
    private IColor color;
    private ISize size;

    @Override
    public void setColor(IColor color) {
        this.color = color;
    }

    @Override
    public void setSize(ISize size) {
        this.size = size;
    }

    @Override
    public void draw() {
        size.setSize();
        color.applyColor();
        System.out.println("使用蜡笔绘制");
    }
}